package com.qbccn.bbs.mapper;

import com.qbccn.bbs.domain.BbsUser;
import org.apache.ibatis.annotations.Param;

/**
 * @author linke
 * @date 2020/6/11 22:47
 * @description
 */
public interface BbsUserMapper {

  int deleteByPrimaryKey(Integer id);

  int insertSelective(BbsUser record);

  BbsUser selectByPrimaryKey(Integer id);

  int updateByPrimaryKeySelective(BbsUser record);

  int updateByPrimaryKey(BbsUser record);

  void updateImg(@Param("username") String username, @Param("url") String url);

  BbsUser getUser(@Param("username") String username);

  void updatePassword(@Param("username") String username, @Param("newPassword") String newPassword);

  String getPassword(@Param("username") String username);
}
